package com.cvsher.strategypattern.model;

import com.cvsher.strategypattern.behavior.impl.FlyNoWay;
import com.cvsher.strategypattern.behavior.impl.Quack;

public class ModelDuck extends Duck{
	
	/**
	 * 默认鸭子模型不会飞，会Quack的叫
	 */
	public ModelDuck(){
		flyBehavior = new FlyNoWay();
		quackBehavior = new Quack();
	}

	@Override
	public void display() {
		System.out.println("this is a model duck !");
	}

}
